package com.cqndt.disaster.device.service.impl;

import java.util.Map;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Value;
import com.cqndt.disaster.device.dao.AppTabPhotographyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import com.cqndt.disaster.device.service.AppTabPhotographyService;

/**
 * Created By marc
 * Date: 2019/4/12  15:39
 * Description:获取倾斜摄影
 */
@Service
public class AppTabPhotographyServiceImpl implements AppTabPhotographyService {
    @Autowired
    private AppTabPhotographyMapper tabPhotographyMapper;
    @Value("${file-ip}")
    private String fileIp;

    @Override
    public Map<String,Object> selectByProjectId(Integer projectId, String modelType) {
        Map<String,Object> map = tabPhotographyMapper.selectByProjectId(projectId,modelType);
        map.put("Panorama",fileIp+"/"+map.get("Panorama").toString());
        return map;
    }
}